mod auth;
mod chat;
mod messages;
mod workspace;

use axum::response::IntoResponse;

pub(crate) use auth::*;
pub(crate) use chat::*;
pub(crate) use messages::*;
pub(crate) use workspace::*;
// use tower::ServiceBuilder;
// use tower_http::{compression::CompressionLayer, trace::TraceLayer};

pub(crate) async fn index_handler() -> impl IntoResponse {
    "index"
}


// pub fn set_layers(app: Router) -> Router{
//     app.layer(
//         ServiceBuilder::new()
//             .layer(TraceLayer::new_for_http())
//             .layer(CompressionLayer::new().gzip(true).br(true).deflate(true)),
//     )
// }